<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex-主轴方向</title>
    <style>
        div{
            /* 给父级添加flex属性 */
            display: flex;
            width: 800px;
            height: 300px;
            background-color: pink;
            /* 1、默认主轴为x轴 ，子元素跟着主轴排列*/
            /* flex-direction:row; */
            /* 从右到左排列 */
            /* flex-direction: row-reverse; */
            /* 2、设置主轴为y轴 */
            /* flex-direction: column; */
            /* 从下到上 */
            flex-direction:column-reverse;

        }
        div span{
            width: 150px;
            height: 100px;
            background-color: purple;
        }

    </style>
</head>
<body>
    <div>
    <span>1</span>
    <span>2</span>
    <span>3</span>
    </div>
    
</body>
</html>